<?php
$row = file_get_contents('php://input');
$post = json_decode($row, true);
$post['time'] = time();

$postData = implode("    ",$post);
file_put_contents("data.txt",$postData."\r\n",FILE_APPEND);
echo time();